# coding=utf-8
from application import app

def create_food_type_json(food_type, key_list=[]) :
    json = {}
    if "id" in key_list :
        json["id"] = food_type.id
    if "name" in key_list :
        json["name"] = food_type.name
    if "created_time" in key_list :
        json["created_time"] = str(food_type.created_time)
    if "updated_time" in key_list :
        json["updated_time"] = str(food_type.updated_time)
    return json




